<?php 

require_once("include/classes.php");
?>

    <div id="content"> 
    <!-- <h2>Registration</h2>-->
     <div id="hamda">
    <table>
    <tr>
   
     
     </tr>
     </table>
    
      <div class="post">
       <div class="entry_Sign2">
    
      
       <?php
        $ObjRegister= new RegistedUser() ;
          

       	if(isset($_POST['Send'])){
			$realName = $_FILES['sora']['name'];
		$uploadPath = "sewar/users/".$realName ;
	$tempFile=$_FILES['sora']['tmp_name'];
	move_uploaded_file($tempFile,$uploadPath) ;
	   $ObjRegister->register($_POST['UsfName'], $_POST['UslName'],$_POST['UsPass'],$_POST['UsEmail'],$uploadPath,
      $_POST['gender'],$_POST['City'],$_POST['Phone'],$_POST['Addresse'],$_POST['year'],$_POST['Month'],$_POST['Day']) ;  
		   //$userObj->LogIn($_POST['UsfName'],$_POST['UslName'],$_POST['UsPass']) ;
		   @header("location:register.php");
		   }
	  /* $userObj = new users;
	   
       	if(isset($_POST['Send'])){
			$realName = $_FILES['sora']['name'];
		$uploadPath = "sewar/users/".$realName ;
		$tempFile=$_FILES['sora']['tmp_name'];
		move_uploaded_file($tempFile,$uploadPath);
	   $userObj->register($_POST['UsName'],$_POST['UsPass'],$_POST['UsEmail'],$uploadPath,$_POST['gender'],$_POST['country']);  
		   $userObj->LogIn($_POST['UsName'],$_POST['UsPass']) ;
		   @header("location:register.php");
		   }*/
	   ?>
       
         <form id="doc" action="<?php echo $_SERVER['PHP_SELF']; ?> " enctype="multipart/form-data" method="post"  >
        <table>
        <tr>
        <td>FirstName :* </td>
        <td><input type="text" class="required" name="UsfName"/></td>
        </tr>
        <tr>
        <td>LastName :* </td>
        <td><input type="text" class="required" name="UslName"/></td>
        </tr>
        <tr>
        <td>Email :* </td>
        <td><input type="text" class="required email" name="UsEmail"/></td>
        </tr>
        <tr>
        <td>Password :* </td>
        <td><input type="password" id="pwd" class="required" minlength="5" name="UsPass"/></td>
        </tr>
         <tr>
        <td>ConfirmPass:* </td>
        <td><input type="password" class="required" equalTo="#pwd"/></td>
        </tr>
        <tr>
         <td >image : </td>
        <td> <input  type="file"  name="sora"/> </td>
        </tr>
        <tr>
         <td >gender : </td>
        <td><select class="required" name="gender">
    <option value="..">..</option>
    <option value="male">male</option>
    <option value="female">female</option>
    </select></td>
        </tr>
        
         <tr>
         <td > City : </td>
        <td> <input  type="text" class="required" name="City"/> </td>
        </tr>
         <tr>
         <td > Phone : </td>
        <td> <input  type="text" class="required" name="Phone"/> </td>
        </tr>
        <tr>
         <td > Addresse : </td>
        <td> <input  type="text" class="required" name="Addresse"/> </td>
        </tr>
        
        <tr>
         <td > Data of Birth :* </td>
        <td><select class="required" name="year">
    <option value="..">..</option>
    <option value="1980">1880</option> <option value="1981">1881</option><option value="1982">1882</option><option value="1983">1883</option><option value="1984">1884</option><option value="1985">1885</option><option value="1986">1886</option><option value="1987">1887</option><option value="1988">1888</option><option value="1989">1889</option>
    <option value="1990">1990</option> <option value="1991">1991</option> <option value="1992">1992</option><option value="1993">1993</option><option value="1994">1994</option> <option value="1995">1995</option><option value="1996">1996</option><option value="1997">1997</option> <option value="1998">1998</option><option value="1999">1999</option><option value="2000">2000</option><option value="2001">2001</option> <option value="2002">2002</option><option value="2003">2003</option><option value="2002">2002</option><option value="2003">2003</option><option value="2004">2004</option><option value="2005">2005</option>
    <option value="female">female</option>
    </select></td>
    
    <td> <select class="required" name="Month">
         <option value="..">..</option> 
         <option value="Jan">Jan</option><option value="Fub">Fub</option><option value="March">March</option><option value="April">April</option><option value="May">May</option><option value="June">June</option><option value="July">July</option><option value="August">August</option><option value="September">September</option><option value="October">October</option><option value="November">November</option><option value="December">December</option>
        </select> </td>
        
        <td><select class="required" name="Day">
         <option value="..">..</option> 
         <option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option>
         
         <option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option>
          <option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option> 
         
            
        </select> </td>
        
        </tr>
       
        <tr>
        <td> <input type="submit" value="Send" name="Send"/></td>
        </tr>
        </table>
        </form>
        
        </div>
      </div>
            <div style="clear: both;">&nbsp;</div>
    </div>
    <!-- end #content --> 
    
  </div>
        
          <!-- <form action=" signUp.php" method="POST">
Username:<input type="text" name="UsfName" > </br>
PassWord:<input type="password" name="UsPass"> </br>
<input type="submit" value="login" >
</form>*/  --> 
  

  </body>
</html>